#pragma once
#include <unordered_map>
#include <queue>
#include "log_def.h"
#include "libevent_cpp/include/include_all.h"
#include "svr_util/include/su_include.h"
#include "svr_util/include/time/su_timer.h"
#include "../acc_proto/include/proto.h"

//连接外网client
class LoginCon : public lc::SvrCon
{
public:
	LoginCon();
	virtual ~LoginCon() override;
	// 发送 client和svr层：cmd,msg 到client
	bool SendMsg(uint32 cmd, const std::string &msg);

private:
	virtual void OnConnected() override{};
	virtual void OnRecv(const lc::MsgPack &msg)override;

	void ReqLogin(int32 cmd, const std::string &msg);
};